#pragma once

/* noncopyable被继承之后，派生类对象可以正常的进行构造与析构，但是无法进行拷贝与赋值 */

class noncopyable
{
public:
    noncopyable(const noncopyable&) = delete;
    noncopyable& operator=(const noncopyable&) = delete;

protected:
    noncopyable() = default;
    ~noncopyable() = default;
};